Hệ thống quản lý ngân hàng máu trong php

1 <?php
2 require_once
'php/DBConnect.php';
3 $db =
new DBConnect();
4 $db->auth();
5
6 $employees = $db->getEmployees();
7
8 $title=
"Employee"; $setEmployeeActive="active";
9 include
'layout/_header.php';
10 include
'layout/navbar.php';
11
12 ?>
13
14 <div
class="container">
15     <div
class="row">
16         <div
class="panel panel-default">
17             <div
class="panel-heading">
18                 <h5>Employees List</h5>
19             </div>
20             <div
class="panel-body">
21                 <?php
if(isset($employees)): ?>
22                 <table
class="table table-condensed">
23                     <thead>
24                     <th>Name</th>
25                     <th>Username</th>
26                     <th>Password</th>
27                     <th>Employee ID</th>
28                     <th>Designation</th>
29                     <th>Mobile</th>
30                     </thead>
31                     
32                     <tbody>
33                         <?php
foreach($employees as $e): ?>
34                         <tr>
35                             <td><?= $e[
'f_name']." ".$e['m_name']." ".$e['l_name']; ?></td>
36                             <td><?= $e[
'username']; ?></td>
37                             <td><?= $e[
'password']; ?></td>
38                             <td><?= $e[
'prc_nr']; ?></td>
39                             <td><?= $e[
'designation']; ?></td>
40                             <td><?= $e[
'mobile_nr']; ?></td>
41                             <td><a href=
"edit.php?id=<?= $e['id']; ?>">Edit</a></td>
42                             <td><a href=
"delete.php?id=<?= $e['id']; ?>">Delete</a></td>
43                         </tr>
44                         <?php endforeach; ?>
45                     </tbody>
46                 </table>
47                 <?php endif; ?>
48             </div>
49         </div>
50                  
51     </div>
52 </div>
53
54 <?php include
'layout/_footer.php'; ?>


Gõ tìm kiếm nhanh...